/**
 * className：PublicConifg.java <br>
 * @version：1.0  <br>
 * date: 2014-11-5-上午10:15:20     <br>
 * Copyright (c)  2014中益智正公司-版权所有   <br>
 */
package com.hfzy.ihk.web.ivr.constant;


import com.hfzy.ihk.common.util.CommonUtils;
import com.hfzy.ihk.common.util.ResourceUtils;

import java.util.Map;


/**
 * className：PublicConifg <br>
 * Function： 环境配置基础类 <br>
 */
public class PublicConfig {

	public static Map<String, String> PUBLIC = ResourceUtils.getResource("public/public").getMap();

	public static String SYSTEM_ENV = System.getProperty("spring.profiles.active");

	/**
	 *  处理队列线程数
	 */
	public static Integer FS_CALL_INTO_HANDLER_SIZE = Integer.valueOf(PUBLIC.get("fs.callInto.disruptor.handler.size"));


	/**
	 *  处理队列线长度
	 */
	public static Integer FS_CALL_INTO_BUFFER_SIZE = Integer.valueOf(PUBLIC.get("fs.callInto.disruptor.ringBuffer.size"));

	//是否开启来电弹屏功能
	public static Boolean SHOW_POPUP_WINDOW = PUBLIC.get("show.popup.window") != null ? Boolean.valueOf(PUBLIC.get("show.popup.window")) : false;

	//固定回拨电话弹屏
	public static String POPUP_PHONE = PUBLIC.get("popup.phone");

	/**服务器名称*/
	public static String SERVER_NAME = CommonUtils.getServerName();

	//淘宝给经纪人的主显号
	public static String TAOBAO_USER_SHOW_NUM = null;

	/**
	 * 处理队列线程数
	 */
	public static Integer DONGJIN_CALL_STATE_HANDLER_SIZE = Integer.valueOf(PUBLIC.get("dongJin.callState.disruptor.handler.size"));
	public static Integer ALIYUN_CALL_OUT_HANDLER_SIZE = Integer.valueOf(PUBLIC.get("aliyun.callOut.disruptor.handler.size"));
	public static Integer ALIYUN_CALL_STATE_HANDLER_SIZE = Integer.valueOf(PUBLIC.get("aliyun.callState.disruptor.handler.size"));

	//各任务队列长度
	public static Integer DONGJIN_CALL_STATE_BUFFER_SIZE = Integer.valueOf(PUBLIC.get("dongJin.callState.disruptor.ringBuffer.size"));
	public static Integer ALIYUN_CALL_OUT_BUFFER_SIZE = Integer.valueOf(PUBLIC.get("aliyun.callOut.disruptor.ringBuffer.size"));
	public static Integer ALIYUN_CALL_STATE_BUFFER_SIZE = Integer.valueOf(PUBLIC.get("aliyun.callState.disruptor.ringBuffer.size"));
	public static Integer ALIYUN_CALL_STATE_BUFFER_NUM_SIZE = Integer.valueOf(PUBLIC.get("aliyun.callState.disruptor.ringBuffer.num.size"));

	public static String FS_CALL_INTO_TRANSFER_LIANTONG_DIALPLAN = PUBLIC.get("fs.callInto.transfer.lianTong.dialPlan");
	public static String FS_CALL_INTO_TRANSFER_ASR_DIALPLAN = PUBLIC.get("fs.callInto.transfer.asr.dialPlan");




}
